package com.demo.tx.local.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.tx.local.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {

    @Select("select id, user_id, user_name from user where user_id = #{userId}")
    List<User> queryByUserId(@Param("userId") Long userId);
}